﻿<UserControl x:Class="TFSBranchVisualizer.BranchVisualizer.Views.View1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:prism="clr-namespace:Microsoft.Practices.Composite.Presentation.Commands;assembly=Microsoft.Practices.Composite.Presentation">

    <Grid x:Name="LayoutRoot">
    	<Grid.Background>
    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    			<GradientStop Color="#FF9CA48A"/>
    			<GradientStop Color="#FFFFFFFF" Offset="1"/>
    			<GradientStop Color="#FF90A85C" Offset="0.5"/>
    		</LinearGradientBrush>
    	</Grid.Background>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0" Text="{Binding Path=Trunk.Name}" TextWrapping="Wrap" Grid.RowSpan="1" Grid.ColumnSpan="2" FontSize="18" Foreground="#FF2F3806" Margin="8,8,8,8"/>

        <ListBox x:Name="DataItemListBox" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
                 ItemsSource="{Binding Path=Trunk.ChildBranches}" SelectionChanged="SelectionChanged" Margin="8,8,8,4" >
        	<ListBox.BorderBrush>
        		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        			<GradientStop Color="#FFAEB9A3"/>
        			<GradientStop Color="#FF83A985" Offset="0.375"/>
        			<GradientStop Color="#FF719778" Offset="0.379"/>
        			<GradientStop Color="#FF61846E" Offset="1"/>
        		</LinearGradientBrush>
        	</ListBox.BorderBrush>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <TextBlock Text="{Binding Path=Name}"/>
                        <!--<TextBlock Text="{Binding Path=Description}"/>
                        <TextBlock Text="{Binding Path=Id}" FontSize="6"/>-->
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>        
        </ListBox>

    </Grid>

</UserControl>
